package com.Design.Singleton;

/**
 * @Author Lc
 * @Date 2023/9/28
 * @PackageName: com.Design.Singleton
 * @ClassName: MainGo
 * @Description:
 */

public class MainGo {
    public static void main(String[] args) {
        Person instance1 = Person.getInstance();
        Person instance2 = Person.getInstance();
        System.out.println(instance1 == instance2);
//        System.out.println(Person.person);
        Animal instance3 = Animal.getInstance();
        Animal instance4 = Animal.getInstance();
        System.out.println(instance3 == instance4);
    }
}
